<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">  
    <title>个人中心</title>
    <link rel="stylesheet" href="/Public/Home/css/member.css">
    <!--不识别数字为手机-->
<meta name="format-detection" content="telephone=no, email=no"/>
<!--通用js-->
<?php if(isset($signPackage) && !empty($signPackage)){ ?>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js?v=201704270010"></script>
<?php } ?>
<script type="text/javascript" src="/Public/Home/js/require.js"></script>
<script type="text/javascript" src="/Public/Home/js/baseLoading.js?v=201705240001"></script>
<script src="/Public/Home/js/jquery.min.js" ></script>
<script src="/Public/Home/js/pincode-input.js" ></script>
<script src="/Public/Home/js/parabola.js" ></script>
<script src="/Public/Home/js/lazyload/jquery.lazyload.min.js"></script>
<script type="text/javascript">
    _global.isLogin = !!"<?php echo $wx_member_id; ?>";
	var isWxShareDiy = typeof yc_share_diy === "undefined" ? false : yc_share_diy;
	var yc_wx_shareImgPath = "";
	<?php if(isset($weixin_logo) && !empty($weixin_logo)){ ?>
		yc_wx_shareImgPath = "/Uploads/<?php echo ($weixin_logo["image"]); ?>";
	<?php } ?>
    var yc_pass_arr = {'local_id':"<?php echo I('local_id',1);?>",'top_local_id':"<?php echo I('top_local_id',1);?>"};
	if(parseInt(yc_pass_arr["local_id"]) == 21){
		_global.isStopSell = true;
	}
    <?php if(isset($signPackage) && !empty($signPackage)){ ?>
        _global.isWeiXinLoad = true;
        var isEnableLocation = typeof yc_wx_location === "undefined" ? false : yc_wx_location;
        var yc_wx_options = {
            "enableLocation" : isEnableLocation,
            "refuseCallback" : function(){},
            "mapCallback" : function(){},
            "config" : {
                debug: false,
                appId: '<?php echo $signPackage["appId"];?>',
                timestamp: '<?php echo $signPackage["timestamp"];?>',
                nonceStr: '<?php echo $signPackage["nonceStr"];?>',
                signature: '<?php echo $signPackage["signature"];?>',
                jsApiList: [
                    'checkJsApi'
                ]
            }
        };
        var isInHeader = typeof yc_wx_useInHeader === "undefined" ? true : yc_wx_useInHeader;
        if(isInHeader){
            wxAutoConfig(yc_wx_options);
        }
    <?php } ?>
</script>
	<script>
		var rnumber = Math.floor(Math.random()*1000);
		history.replaceState({mod: rnumber}, 'Title', '?mod='+rnumber);
	</script>
</head>
<body>
	<div class="warp" style="padding-bottom:1.1rem;">
		<!-- 会员中心 header -->
		<section class="member-contianer">
			<!--会员信息-->
			<div class="member-info">
				<!--<a href="javascript:void(0);" class="authentication">身份验证</a>-->
				<div class="member-basic">
					<a href="<?php echo url('Member/memberInfo');?>">
						<img class="img-lazyload"  data-original="<?php echo ($user_top_img); ?>"src="/Public/Home/images/member_headLogo.png" >
					</a>
					<!-- 未登录 -->
					<p class="login" style="display:none;"><a href="">登录</a><a href="">注册</a></p>
					<!-- 已登录 -->
					<p class="name"><span><?php echo ($menber_data[nickname]); ?></span><span>2</span></p>
				</div>
				<div class="my-menu">
					<a href="">
						<span><?php echo ($menber_data[point]); ?></span>
						<p>我的积分</p>
					</a>
					<a href="<?php echo url('Member/memberCoupon');?>">
						<span><?php echo ($cuCoupon); ?></span>
						<p>我的礼券</p>
					</a>
					<a href="<?php echo url('Member/memberAssets');?>">
						<span><?php echo ($menber_data[advance]); ?></span>
						<p>我的资产</p>
					</a>
				</div>
			</div>
			<!-- 我的订单 -->
			<div class="member-order">
				<h1 class="clearfix">
					<p class="fl">我的订单</p>
					<a href="<?php echo url('Member/memberOrder',['view' => 6]);?>" class="fr">查看全部订单</a>
				</h1>
				<div class="member-order-menu">
					<a href="<?php echo url('Member/memberOrder',['view' => 3]);?>">
                        <span>
                        <?php if($no_pay_sum): ?><i><?php echo ($no_pay_sum); ?></i><?php endif; ?>
                        </span>

						<p>未支付</p>
					</a>
					<a href="<?php echo url('Member/memberOrder',['view' => 0]);?>">
                        <span>
                        <?php if($no_sum): ?><i><?php echo ($no_sum); ?></i><?php endif; ?>
                        </span>
						<p>待发货</p>
					</a>
					<a href="<?php echo url('Member/memberOrder',['view' => 10]);?>">
                        <span>
                        <?php if($yes_sum): ?><i><?php echo ($yes_sum); ?></i><?php endif; ?>
                        </span>
						<p>待收货</p>
					</a>
					<a href="<?php echo url('Member/memberOrder',['view' => 8]);?>">
                        <span>
                        <?php if($no_evaluate_sum): ?><i><?php echo ($no_evaluate_sum); ?></i><?php endif; ?>
                        </span>
						<p>待评价</p>
					</a>
					<a href="<?php echo url('Member/memberOrder',['view' => 7]);?>">
                        <span>
                        <?php if($refund_sum): ?><i><?php echo ($refund_sum); ?></i><?php endif; ?>
                        </span>
						<p>退款中</p>
					</a>
				</div>			
			</div>	
			<!-- 用户菜单 -->
			<div class="member-menu">
				<!--<a href="memberMylove.html">我喜欢</a>-->
                <a href="<?php echo url('Member/memberMyLikeGood');?>">我喜欢</a>
                <a href="<?php echo url('Member/chooseShop');?>">店铺奖金</a>
				<!--<a href="memberMyinvitation.html">邀请有礼</a>-->
				<a href="<?php echo url('Member/memberMyFeedback',['mobile' => $menber_data[mobile]]);?>">意见反馈</a>
				<!--<a href="memberHelpcenter.html">帮助中心</a>-->
                <!--<a href="<?php echo url('Member/index',['name'=>1]);?>">ces</a>-->
			</div>		
		</section>	
	</div>
    <!-- 认证弹窗 -->
    <div class="authenticationTips">
    	<span class="close"></span>
		<h1>认证专属身份</h1>
		<div class="tips-body">
			<p>请输入您的认证码</p>
			<input type="text" placeholder="dewdewf564ds4"/>
			<input type="submit" value="认证" />
		</div>
		<div class="tips-des">
			<h4><span>温馨提示</span></h4>
			<p>请先绑定您的手机号码才可认证专属身份，如您还没有绑定手机请先在个人设置界面操作;</p>
		</div>
    </div>
    <!-- 网站主菜单 -->
	<link rel="stylesheet" href="/Public/Home/css/menu.css">
<div class="fixed-main-menu">

    <?php
 $home_default_local_id = (!empty($_GET['top_local_id']) && $_GET['top_local_id'] != '11') ? $_GET['top_local_id'] : $default_local_id; ?>
    <?php if ($_GET['local_id'] == '11'){ ?>
        <a href="<?php echo url('store/index',['local_id' => $home_default_local_id, 'top_local_id' => 11]);?>" class="home <?php echo CONTROLLER_NAME == 'Store' ? 'active' : ''; ?>"><span></span>
            <p>首页</p>
        </a>
    <?php }else { ?>
        <a href="<?php echo url('store/index',['local_id' => $storeData['local_id']]);?>" class="home <?php echo CONTROLLER_NAME == 'Store' ? 'active' : ''; ?>"><span></span>
            <p>首页</p>
        </a>
    <?php } ?>

    <?php if ($_GET['local_id'] == '11'){ ?>
    <a href="<?php echo url('category/index', ['local_id' => $home_default_local_id, 'top_local_id' => 11]);?>" class="category <?php echo CONTROLLER_NAME == 'Category' ? 'active' : ''; ?>"><span></span>
        <p>分类</p></a>
    <?php }else { ?>
    <a href="<?php echo url('category/index', ['local_id' => $storeData['local_id']]);?>" class="category <?php echo CONTROLLER_NAME == 'Category' ? 'active' : ''; ?>"><span></span>
        <p>分类</p></a>
    <?php } ?>

    <?php if ($_GET['local_id'] == '11'){ ?>
    <a href="<?php echo url('store/index', ['local_id' => '11']);?>" class="store-way <?php echo ($_GET['local_id'] == '11') ? 'active' : '';?>"><span></span><p>全国送</p></a>
    <?php }else { ?>
    <?php $top_local_id = (!empty($_GET['local_id'])) ? $_GET['local_id'] : $storeData['local_id']; ?>
    <a href="<?php echo url('store/index', ['local_id' => '11','top_local_id' => $top_local_id]);?>" class="store-way <?php echo ($_GET['local_id'] == '11') ? 'active' : '';?>"><span></span><p>全国送</p></a>
    <?php } ?>

    <a href="<?php echo url('carts/cart');?>" class="cart <?php echo CONTROLLER_NAME == 'Carts' ? 'active' : ''; ?> clickable_shou"><span></span>
        <p>购物车</p>

            <?php if(userCartNum()): ?><label class="public-cart-number"><?php echo userCartNum();?></label><?php endif; ?>
    </a>
    <a href="<?php echo url('Member/index');?>" class="mine <?php echo CONTROLLER_NAME == 'Member' ? 'active' : ''; ?> clickable_shou" id="menuMemberPopup"><span></span><p>我的</p></a>
</div>
<link rel="stylesheet" href="/Public/Home/css/phoneCheck.css">
<div class="alert-popup bindPhone">
    <p>你还没有绑定手机号，为了你更好的体验怡臣请先绑定手机号。</p>
    <p><a href="javascript:void(0);" class="cancel">先看看</a><a href="javascript:void(0);" class="confirm">绑定手机</a></p>
</div>
<div class="bindPhone-box" style="display:none">
    <span class="close"></span>
    <div class="inputInfo">
        <h1>验证手机号</h1>
        <ul>
            <li><input type="text" placeholder="请输入绑定手机号" id="phone"> <a href="javascript:void(0);" id="yzCaptcha">获取验证码</a></li>
            <li>
                <div class="pincode-input-container touch" id="pincode-list">
                    <div style="display: none;">
                        <input type="password" readonly pattern="[0-9]*" inputmode="numeric" id="preventautofill" autocomplete="off">
                    </div>
                    <div class="touchwrapper touch4">
                        <input type="password" pattern="[0-9]*" readonly inputmode="numeric" maxlength="4" autocomplete="off" class="form-control pincode-input-text">
                        <table class="touchtable">
                            <tbody>
                            <tr>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td class="last"></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="text-danger pincode-input-error"></div>
                </div>
                <input type="text" id="code-input" style="display:none;">
                <p class="code-tips" style="display:none;"></p>
            </li>
        </ul>
    </div>
    <div class="success" style="display:none;">
        <ul>
            <li>
                <span>绑定成功!</span>
                <p>该窗口<i>3</i>秒后自动关闭</p>
            </li>
        </ul>
    </div>
</div>

<script type="text/javascript">
    $(".clickable_shou").click(function(e){
        _global.checkPhoner.reset();
        _global.checkPhoner.run(e, $(this).attr('href'));
    });
</script>


    <script type="text/javascript">
		require(['memberIndex']);
	</script>
</body>
</html>